﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowList.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.Flow.FlowList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script defer="defer" src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        function showPage(url) {
            window.showModalDialog(encodeURI(url), "", "dialogWidth=960px;dialogHeight=700px");
            //window.open(url);
        }
    </script>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div style="margin-top:5px; width:100%">
        <table border="0" cellspacing="1" cellpadding="0" width="100%">
            <tr>
                <td style="text-align:left; height:30px;">
                    <asp:Label ID="lblFlowName" runat="server" Text="流程"></asp:Label>
                    <asp:DropDownList ID="ddlFlowName" runat="server" Width="150px"></asp:DropDownList>
                    &nbsp;&nbsp;<asp:Label ID="lblSubject" runat="server" Text="主题"></asp:Label>
                    <asp:TextBox ID="txtSubject" runat="server" Width="150px" ></asp:TextBox>
                    &nbsp;&nbsp;<asp:Label ID="lblCreateUser" runat="server" Text="创建人"></asp:Label>
                    <asp:TextBox ID="txtCreateUser" runat="server" Width="80px"></asp:TextBox>   
                    &nbsp;&nbsp;<asp:Label ID="lblCompleted" runat="server" Text="流程状态"></asp:Label>
                    <asp:DropDownList ID="ddlCompleted" runat="server" Width="150px">
                                                <asp:ListItem Value="">全部</asp:ListItem>
                                                <asp:ListItem Value="0">处理中</asp:ListItem>
                                                <asp:ListItem Value="1">已完成</asp:ListItem>                    
                                            </asp:DropDownList> 
                    &nbsp;&nbsp;<asp:Label ID="lblCreateDate" runat="server" Text="创建时间"></asp:Label>
                    <asp:TextBox ID="txtCreateDateFrom" runat="server" onClick="WdatePicker()" Width="80px"></asp:TextBox>
                    <asp:TextBox ID="txtCreateDateTo" runat="server" onClick="WdatePicker()" Width="80px"></asp:TextBox>  
                    &nbsp;&nbsp;<asp:Button ID="btnSelect" runat="server" Text="查询" onclick="btnSelect_Click" />
                    <asp:TextBox ID="txtCurrentUser" runat="server" Width="30px"></asp:TextBox>              
                </td>
            </tr>  
        </table>
    </div>
    <div style="margin-top:10px">
    <asp:GridView ID="gvFlowList" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" Font-Size="9pt" ForeColor="#333333" GridLines="Both"
            Width="100%" DataKeyNames="FlowID,FlowInstanceID" 
            onrowdatabound="gvFlowList_RowDataBound" >            
        <Columns>
            <asp:BoundField HeaderText="流程名称" DataField="FlowName" ItemStyle-Width="150px"/>
            <asp:BoundField HeaderText="主题" DataField="Subject" />
            <asp:BoundField HeaderText="创建人" DataField="CreateUser" ItemStyle-Width="60px"/>
            <asp:BoundField HeaderText="创建时间" DataField="CreateDate" ItemStyle-Width="100px"/>
            <asp:BoundField HeaderText="流程状态" DataField="Completed" ItemStyle-Width="60px"/>
            <asp:BoundField HeaderText="最后处理时间" DataField="OperationDate" ItemStyle-Width="100px"/>
            <asp:TemplateField HeaderText="操作"  ItemStyle-Width="60px">
                <ItemTemplate>
                    <asp:Button ID="btnOpen" runat="server" Text="打开" Height="18px"></asp:Button>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
        <RowStyle BackColor="#FAFAFA" ForeColor="#333333" Height="20px" HorizontalAlign="Center"/>
        <EmptyDataTemplate>
            <div style="text-align:center; margin-top:20px; margin-bottom:20px;">当前没有流程数据。</div>        
        </EmptyDataTemplate>
    </asp:GridView>
    </div>
    </form>
</body>
</html>
